package javacommon.util;

import java.util.ArrayList;
import java.util.List;

import javacommon.util.org.TimeSlice;

public class Notes {
	public static final String LOGIN_INFO = "loginInfo";
	
	public static final Integer APPID = 1;
	public static final String TALBE_PUB_OFFICE="pub_office";
	public static final String TABLE_PUB_INFO = "pub_info";
	public static final String TABLE_PUB_TEMPLATE = "pub_template";
	public static final String TABLE_PUB_SOFT = "pub_soft";
	public static final String task= "task";
	public static final String meeting = "meeting";
	public static final String zdxzdc = "zdxzdc";
	public static final String taskReturn = "task_return";
	public static final String TABLE_PUB_CCSQ = "pub_ccsq";
	public static final String TABLE_MEETING = "meeting";
	
	
	
	
	
	public static final String meetingUrl = "meeting_show.do?";
	public static final String taskUrl = "task_myTask.do?opt=my&";
	public static final String zdxzdcUrl = "zdxzdc/myTask.do?opt=zdxzdc&";
	public static final String taskReturnUrl = "taskReturn/my.do?opt=return&";
	public static final String pubCcsqUrl = "pubCcsq/myTask.do?opt=ccsq&";
	
	public static List<TimeSlice> timeSliceList;

	public static List<TimeSlice> getTimeSliceList() {
		timeSliceList = new ArrayList();
		TimeSlice ts = new TimeSlice();
		ts.setTime("09:00 - 09:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("09:30 - 10:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("10:00 - 10:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("10:30 - 11:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("11:00 - 11:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("11:30 - 12:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("12:00 - 12:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("12:30 - 13:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("13:00 - 13:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("13:30 - 14:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("14:00 - 14:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("14:30 - 15:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("15:00 - 15:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("15:30 - 16:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("16:00 - 16:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("16:30 - 17:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("17:00 - 17:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("17:30 - 18:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		/*ts = new TimeSlice();
		ts.setTime("18:00 - 18:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("18:30 - 19:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("19:00 - 19:30");
		ts.setIsUsed("false");
		timeSliceList.add(ts);
		
		ts = new TimeSlice();
		ts.setTime("19:30 - 20:00");
		ts.setIsUsed("false");
		timeSliceList.add(ts);*/
		
		
		return timeSliceList;
	}

	/*个人费用*/
	public static int getCost(String str){
		if(StringUtils.notNull(str)){
			str = str.trim();
		}
		if(StringUtils.equals("员工编号",str)){
			return 1;
		}else if(StringUtils.equals("员工姓名",str)){
			return 2;
		}else if(StringUtils.equals("现层级",str)){
			return 3;
		}else if(StringUtils.equals("标准",str)){
			return 4;
		}else if(StringUtils.equals("单位",str)){
			return 5;
		}else if(StringUtils.equals("有无车",str)){
			return 6;
		}else if(StringUtils.equals("全年可报销额度",str)){
			return 7;
		}else if(StringUtils.equals("1月",str)){
			return 8;
		}else if(StringUtils.equals("2月",str)){
			return 9;
		}else if(StringUtils.equals("3月",str)){
			return 10;
		}else if(StringUtils.equals("4月",str)){
			return 11;
		}else if(StringUtils.equals("5月",str)){
			return 12;
		}else if(StringUtils.equals("6月",str)){
			return 13;
		}else if(StringUtils.equals("7月",str)){
			return 14;
		}else if(StringUtils.equals("8月",str)){
			return 15;
		}else if(StringUtils.equals("9月",str)){
			return 16;
		}else if(StringUtils.equals("10月",str)){
			return 17;
		}else if(StringUtils.equals("11月",str)){
			return 18;
		}else if(StringUtils.equals("12月",str)){
			return 19;
		}
		return 0;
	}
	
	/*物资采购*/
	public static int getWzcg(String str){
		if(StringUtils.notNull(str)){
			str = str.trim();
		}
		if(StringUtils.equals("申请人",str)){
			return 1;
		}else if(StringUtils.equals("员工编号",str)){
			return 2;
		}else if(StringUtils.equals("部门",str)){
			return 3;
		}else if(StringUtils.equals("岗位职务",str)){
			return 4;
		}else if(StringUtils.equals("固资类别",str)){
			return 5;
		}else if(StringUtils.equals("预算情况说明",str)){
			return 6;
		}else if(StringUtils.equals("型号规格",str)){
			return 7;
		}else if(StringUtils.equals("下单日期",str)){
			return 8;
		}else if(StringUtils.equals("采购周期",str)){
			return 9;
		}else if(StringUtils.equals("预计到货日期",str)){
			return 10;
		}else if(StringUtils.equals("货期变更说明",str)){
			return 11;
		}else if(StringUtils.equals("实际到货日期",str)){
			return 12;
		}
		return 0;
	}
}
